package algorithm.poj.p3000;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLDecoder;
import java.util.StringTokenizer;


/**
 * 分析：
 * 实现：
 * 经验：
 * 教训：
 * 
 * @author wong.tong@gmail.com
 *
 */
public class P3030 {

	public static void main(String[] args) throws Exception {

		InputStream input = null;
		if (false) {
			input = System.in;
		} else {
			URL url = P3030.class.getResource("P3030.txt");
			File file = new File(URLDecoder.decode(url.getPath(), "UTF-8"));
			input = new FileInputStream(file);
		}
		
		BufferedReader stdin = new BufferedReader(new InputStreamReader(input));

		StringBuffer sb = new StringBuffer("");
		String line = stdin.readLine();
		int n = Integer.valueOf(line.trim());
		for (int i = 0; i < n; i ++){
            line = stdin.readLine();
            StringTokenizer st = new StringTokenizer(line);
            int r = Integer.valueOf(st.nextToken());
            int e = Integer.valueOf(st.nextToken());
            int c = Integer.valueOf(st.nextToken());
            int t = e-c;
            if (t > r) {
            	sb.append("advertise\n");
            } else if (t < r) {
            	sb.append("do not advertise\n");
            } else {
            	sb.append("does not matter\n");
            }
		}
		System.out.println(sb);
	}
}
